<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:93:"D:\PHPTutorial\WWW\guyun\public/../application/admin\view\personalcenter\userPrivateData.html";i:1542608331;s:64:"D:\PHPTutorial\WWW\guyun\application\admin\view\common\head.html";i:1541553786;s:66:"D:\PHPTutorial\WWW\guyun\application\admin\view\common\footer.html";i:1515220430;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>上海顾云数据科技中心</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/static/admin/layui/css/layui.css">
    <link rel="stylesheet" href="/static/admin/build/css/app.css" media="all">
</head>
<style>
    .hidden{
        display: none;
    }

</style>
<style>
    .api_div{
        cursor: pointer;
        margin:0 auto;
        border:1px solid #029587;
        border-radius:15px;
    }
</style>
<div style="overflow-x: hidden;width: 96%;margin: auto;padding-top: 1rem;">
    <blockquote class="layui-elem-quote"><span>我的顾云&nbsp;&nbsp;&nbsp;&nbsp;欢迎您&nbsp;&nbsp;<span style="color:#029587;font-size: 15px"><b><?php echo $userInfo['name']; ?></b></span></span></blockquote>
    <div class="layui-row layui-col-space5" style="height: 130px;">
        <div class="layui-col-md2 api_div" style="height: 150px;margin-left: 0.5rem;margin-left: 1.5rem">
            <div class="grid-demo grid-demo-bg1" style="margin-left: 1rem">
                <div class="layui-row">
                    <div class="layui-col-xs6" style="margin-top: 3rem;margin-left: 5rem">
                        <div class="grid-demo grid-demo-bg1">
                            <i class="layui-icon " style="font-size: 15px; color:#029587;">&#xe617;</i>
                            <span>实名认证</span><br>
                            <?php if($userInfo['is_check'] == 1): ?>
                            <i class="layui-icon " style="font-size: 25px; color:red;">&#xe614;</i>
                            <span style="color: red;line-height: 50px;">未认证</span>
                            <?php elseif($userInfo['is_check'] == 2): ?>
                            <i class="layui-icon " style="font-size: 25px; color:red;">&#xe614;</i>
                            <span style="color: red;line-height: 50px;">审核中</span>
                            <?php else: ?>
                            <i class="layui-icon " style="font-size: 25px; color:#029587;">&#x1005;</i>
                            <span style="color: #029587;line-height: 50px;">已认证</span>
                            <?php endif; ?>
                        </div>
                    </div>
                </div>

            </div>
        </div>
        <div class="layui-col-md2 api_div" style="height: 150px;margin-left: 0.5rem;margin-left: 1.5rem">
            <div class="grid-demo grid-demo-bg1" style="margin-left: 1rem">
                <div class="layui-row">
                    <div class="layui-col-xs6" style="margin-top: 3rem;margin-left: 4rem">
                        <div class="grid-demo grid-demo-bg1">
                            <i class="layui-icon " style="font-size: 15px; color:#029587;">&#xe617;</i>
                            <span>账户余额&nbsp;(元)</span><br>
                            <i class="layui-icon " style="font-size: 25px; color:#029587;">&#xe65e;</i>
                            <span style="color: #029587;line-height: 50px;"><?php echo $userInfo['left_price']; ?></span>
                            <a class="money" title="点击续费"><i class="layui-icon" style="font-size: 20px; color:#029587;line-height: 30px">&#xe654;</i></a>
                        </div>
                    </div>
                </div>

            </div>
        </div>
        <div class="layui-col-md2 api_div" style="height: 150px;margin-left: 0.5rem;margin-left: 1.5rem">
            <div class="grid-demo grid-demo-bg1" style="margin-left: 1rem">
                <div class="layui-row">
                    <div class="layui-col-xs6" style="margin-top: 3rem;margin-left: 4rem">
                        <div class="grid-demo grid-demo-bg1">
                            <i class="layui-icon " style="font-size: 15px; color:#029587;">&#xe617;</i>
                            <span>用户key值</span><br>
                            <span style="color: #029587;line-height: 50px;"><?php echo $userInfo['user_token']; ?></span>
                        </div>
                    </div>
                </div>

            </div>
        </div>
        <div class="layui-col-md2 api_div" style="height: 150px;margin-left: 0.5rem;margin-left: 1.5rem">
            <div class="grid-demo grid-demo-bg1" style="margin-left: 1rem">
                <div class="layui-row">
                    <div class="layui-col-xs6" style="margin-top: 3rem;margin-left: 4rem">
                        <div class="grid-demo grid-demo-bg1">
                            <i class="layui-icon " style="font-size: 15px; color:#029587;">&#xe617;</i>
                            <span>手机号</span><br>
                            <i class="layui-icon " style="font-size: 25px; color:#029587;">&#xe611;</i>
                            <span style="color: #029587;line-height: 50px;"><?php echo $userInfo['mobile']; ?></span>
                        </div>
                    </div>
                </div>

            </div>
        </div>
        <div class="layui-col-md2 api_div" style="height: 150px;margin-left: 0.5rem;margin-left: 1.5rem">
            <div class="grid-demo grid-demo-bg1" style="margin-left: 1rem">
                <div class="layui-row">
                    <div class="layui-col-xs6" style="margin-top: 3rem;margin-left: 4rem">
                        <div class="grid-demo grid-demo-bg1">
                            <i class="layui-icon " style="font-size: 15px; color:#029587;">&#xe617;</i>
                            <span>登陆次数</span><br>
                            <i class="layui-icon " style="font-size: 25px; color:#029587;">&#xe60e;</i>
                            <span style="color: #029587;line-height: 50px;"><?php echo $userInfo['login_count']; ?>&nbsp;次</span>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>
    <blockquote class="layui-elem-quote" style="margin-top: 2rem"><span>我的顾云&nbsp;&nbsp;&nbsp;&nbsp;已添加的数据&nbsp;(<?php echo $count; ?>)</span></blockquote>
    <div class="layui-row layui-col-space5" style="height: 130px">
        <div style="text-align: right;margin-right: 5rem;margin-top: 1rem;"><a href="/admin/Personalcenter/index"><span style="color: #029587">查看全部数据>></span></a></div>
        <?php foreach($apiList as $a): ?>
        <div class="layui-col-md2 api_div" style="height: 150px;width:500px;margin-left: 0.5rem;margin-top: 1em;margin-left: 1.5rem">
            <div class="grid-demo grid-demo-bg1" style="margin-left: 2rem;">
                <div class="layui-row" style="line-height: 150px">
                    <div class="layui-col-xs6">
                        <div class="grid-demo grid-demo-bg1">
                            <i class="layui-icon image_icon" style="font-size: 80px; color:#029587;">&#xe647;</i>
                        </div>
                    </div>
                    <div class="layui-col-xs6">
                        <div class="grid-demo">
                            <div style="color: #029587;font-size: 15px"><?php echo $a['api_name']; ?></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <?php endforeach; ?>
    </div>
</div>
<script src="/static/admin/jquery.js"></script>
<script type="text/javascript" src="/static/index/layer/layer.js"></script>
<script>
    $('.money').click(function(){
        layer.alert('请联系本公司客服,进行线下充值!!!', {
            icon: 0,
            skin: 'layer-ext-moon'
        })
    });
</script>
    <script src="/static/admin/layui/layui.js"></script>
<script src="/static/common/js/jquery.min.js"></script>
<script>
//    图片放大显示
    $('.select_img').on('click',function () {
        var img_url=$(this).data('content');
        layer.open({
            type: 1,
            title: false,
            closeBtn: 0,
            area: ['50%','80%'],
            skin: 'layui-layer-nobg', //没有背景色
            shadeClose: true,
            content: '<img src="'+img_url+'" />',
        });
    })
    //文件上传
    layui.use('upload', function(){
        var $ = layui.jquery
            ,upload = layui.upload;
        //多文件列表示例
        var demoListView = $('#demoList')
            ,uploadListIns = upload.render({
            elem: '#testList'
            ,url: '<?php echo url("Upload/file_images"); ?>'
            ,accept: 'file'
            ,multiple: true
            ,auto: false
            ,bindAction: '#testListAction'
            ,choose: function(obj){
                var files = obj.pushFile(); //将每次选择的文件追加到文件队列
                //读取本地文件
                obj.preview(function(index, file, result){
                    var tr = $(['<tr id="upload-'+ index +'">'
                        ,'<td>'+ file.name +'</td>'
                        ,'<td>'+ (file.size/1014).toFixed(1) +'kb</td>'
                        ,'<td>等待上传</td>'
                        ,'<td>'
                        ,'<button class="layui-btn layui-btn-mini demo-reload layui-hide">重传</button>'
                        ,'<button class="layui-btn layui-btn-mini layui-btn-danger demo-delete">删除</button>'
                        ,'</td>'
                        ,'</tr>'].join(''));

                    //单个重传
                    tr.find('.demo-reload').on('click', function(){
                        obj.upload(index, file);
                    });

                    //删除
                    tr.find('.demo-delete').on('click', function(){
                        delete files[index]; //删除对应的文件
                        tr.remove();
                    });

                    demoListView.append(tr);
                });
            }
            ,done: function(res, index, upload){
                if(res.code == 200){ //上传成功
                    var tr = demoListView.find('tr#upload-'+ index)
                        ,tds = tr.children();
                    tds.eq(2).html('<span style="color: #5FB878;">上传成功</span><input type="hidden" name="images['+index+']" value="'+res.data.src+'">');
                    tds.eq(3).html(''); //清空操作
                    delete files[index]; //删除文件队列已经上传成功的文件
                    return;
                }
                this.error(index, upload);
            }
            ,error: function(index, upload){
                var tr = demoListView.find('tr#upload-'+ index)
                    ,tds = tr.children();
                tds.eq(2).html('<span style="color: #FF5722;">上传失败</span>');
                tds.eq(3).find('.demo-reload').removeClass('layui-hide'); //显示重传
            }
        });

        //普通图片上传 单图片上传
        var uploadInst = upload.render({
            elem: '#image'
            ,url: '<?php echo url("Upload/file_images"); ?>'
            ,before: function(obj){
                //预读本地文件示例，不支持ie8
                obj.preview(function(index, file, result){
                    $('#show_image').attr('src', result); //图片链接（base64）
                });
            }
            ,done: function(res){
                //如果上传失败
                if(res.code == 400){
                    return layer.msg('上传失败');
                }
                $('.value_image').val(res.data.src);
                //上传成功
            }
            ,error: function(){
                //演示失败状态，并实现重传
                var demoText = $('#demoText');
                demoText.html('<span style="color: #FF5722;">上传失败</span> <a class="layui-btn layui-btn-mini demo-reload">重试</a>');
                demoText.find('.demo-reload').on('click', function(){
                    uploadInst.upload();
                });
            }
        });
    });
</script>

    <!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
    </body>
    </html>